package cn.tedu.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("easy-id")
public interface EasyIdClient {
    /*
            {
              "msg": "成功",
              "success": true,
              "data": "6"
            }
     */
    @GetMapping("/segment/ids/next_id")
    Map<String, String> nextId(
            @RequestParam("businessType") String businessType);
}
